Adwaita: better solid-csd styling
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 15 Apr 2016 14:51:29 +0000 (16:51 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 15 Apr 2016 14:51:29 +0000 (16:51 +0200)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 9b391338a4d9d199c71fff07a2c89cb02817d17f..8d061a1ce1e85e88fcfa0ae2f5f74589f007f50a 100644 (file)
@@ -1509,6 +1509,14 @@ headerbar {
       padding: 0;
     }
   }
+
+  .solid-csd & {
+    margin-left: -1px;
+    margin-right: -1px;
+    margin-top: -1px;
+    border-radius: 0;
+    box-shadow: none;
+  }
 }
 
 headerbar {
@@ -4162,7 +4170,7 @@ decoration {
   .csd.popup & {
     border-radius: 0;
     box-shadow: 0 1px 2px transparentize(black, 0.8),
-                0 0 0 1px transparentize($_wm_border,0.1);
+                0 0 0 1px transparentize($_wm_border, 0.1);
   }
 
   tooltip.csd & {
@@ -4173,15 +4181,18 @@ decoration {
   messagedialog.csd & {
     border-radius: 7px;
     box-shadow: 0 1px 2px transparentize(black, 0.8),
-                  0 0 0 1px transparentize($_wm_border,0.1);
+                0 0 0 1px transparentize($_wm_border, 0.1);
   }
 
   .solid-csd & {
+    margin: 0;
+    padding: 4px;
+    background-color: $borders_color;
+    border: solid 1px $borders_color;
     border-radius: 0;
-    margin: 4px;
-    background-color: $backdrop_bg_color;
-    border: solid 1px $backdrop_borders_color;
-    box-shadow: none;
+    box-shadow: inset 0 0 0 3px $headerbar_color, inset 0 1px $top_hilight;
+
+    &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
   }
 }
 
index 65cef173da206dc561774925b506ebef271b2da0..a2de878260e947cfb4adb53f5c3cef7997e89ae7 100644 (file)
@@ -1929,6 +1929,13 @@ headerbar {
       min-width: 26px;
       margin: 0;
       padding: 0; }
+  .solid-csd .titlebar:not(headerbar), .solid-csd
+  headerbar {
+    margin-left: -1px;
+    margin-right: -1px;
+    margin-top: -1px;
+    border-radius: 0;
+    box-shadow: none; }
 
 headerbar entry,
 headerbar spinbutton,
@@ -4375,11 +4382,14 @@ decoration {
     border-radius: 7px;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8); }
   .solid-csd decoration {
+    margin: 0;
+    padding: 4px;
+    background-color: #1c1f1f;
+    border: solid 1px #1c1f1f;
     border-radius: 0;
-    margin: 4px;
-    background-color: #393f3f;
-    border: solid 1px #1f2222;
-    box-shadow: none; }
+    box-shadow: inset 0 0 0 3px #323737, inset 0 1px rgba(238, 238, 236, 0.07); }
+    .solid-csd decoration:backdrop {
+      box-shadow: inset 0 0 0 3px #393f3f, inset 0 1px rgba(238, 238, 236, 0.07); }
 
 button.titlebutton {
   text-shadow: 0 -1px rgba(0, 0, 0, 0.81176);
index b0d0f048fc7ac14755370227c7984bafe93708d8..e76ab44a10261a6ebc9c79c38ed370f6b0341ee3 100644 (file)
@@ -1936,6 +1936,13 @@ headerbar {
       min-width: 26px;
       margin: 0;
       padding: 0; }
+  .solid-csd .titlebar:not(headerbar), .solid-csd
+  headerbar {
+    margin-left: -1px;
+    margin-right: -1px;
+    margin-top: -1px;
+    border-radius: 0;
+    box-shadow: none; }
 
 headerbar entry,
 headerbar spinbutton,
@@ -4404,11 +4411,14 @@ decoration {
     border-radius: 7px;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }
   .solid-csd decoration {
+    margin: 0;
+    padding: 4px;
+    background-color: #9d9d99;
+    border: solid 1px #9d9d99;
     border-radius: 0;
-    margin: 4px;
-    background-color: #e8e8e7;
-    border: solid 1px #a5a5a1;
-    box-shadow: none; }
+    box-shadow: inset 0 0 0 3px #f4f4f4, inset 0 1px rgba(255, 255, 255, 0.8); }
+    .solid-csd decoration:backdrop {
+      box-shadow: inset 0 0 0 3px #e8e8e7, inset 0 1px rgba(255, 255, 255, 0.8); }
 
 button.titlebutton {
   text-shadow: 0 1px rgba(255, 255, 255, 0.76923);